Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayExt Class / GetEnum Method / GetEnum<T>(IPdfArray,Int32,Nullable<T>) Method
The current array.
The value index.
The default value.

In This Topic
    GetEnum<T>(IPdfArray,Int32,Nullable<T>) Method
    In This Topic
    Gets the nullable enum value at the specified index. If the value does not exist or cannot be converted to an enum, returns defValue (which can be null).
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetEnum(Of T As {New, Struct})( _
       ByVal array As IPdfArray, _
       ByVal index As System.Integer, _
       ByVal defValue As System.Nullable(Of T) _
    ) As System.Nullable(Of T)
    public static System.Nullable<T> GetEnum<T>( 
       IPdfArray array,
       System.int index,
       System.Nullable<T> defValue
    )
    where T: new(), struct

    Parameters

    array
    The current array.
    index
    The value index.
    defValue
    The default value.

    Type Parameters

    T

    Return Value

    The value at the specified index, or defValue.
    See Also